package cn.hcbycloud.common.jwt.service.encryptionkey.impl;


import cn.hcbycloud.common.jwt.properties.EncryptionKeyProperties;
import cn.hcbycloud.common.jwt.service.encryptionkey.BaseGenerateJwtKeyService;
import lombok.AllArgsConstructor;

/**
 * @author gaoh
 * @desc sss
 * @date 2022年01月18日 下午 2:29
 */
@AllArgsConstructor
public class GenerateJwtKeyServiceImpl extends BaseGenerateJwtKeyService {
    /**
     * 注入读取key.properties服务
     */
    EncryptionKeyProperties encryptionKeyProperties;

    /**
     * 获取公钥
     * @return
     */
    @Override
    public String getJwtPublicKeyStr() {
        return encryptionKeyProperties.getPublicKey();
    }

    /**
     * 获取密钥
     * @return
     */
    @Override
    public String getJwtPrivateKeyStr() {
        return encryptionKeyProperties.getPrivateKey();
    }
}